package cn.itcast.users.feign;

import cn.itcast.result.Result;
import cn.itcast.users.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;


@FeignClient("sky-users")
public interface UserFegin {

    @GetMapping(value = "/user/user/one/{id}")
    Result<User> one(@PathVariable("id")Long id);

    @PostMapping("/user/user/feign/countByMap")
    Integer countByMap(@RequestBody Map<String, Object> map);

}
